package com.source.baseData.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Feng
 * @since 2021/3/1 16:58
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="委托")
public class EntrustVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "entrustId", type = IdType.ASSIGN_UUID)
    private String entrustId;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "用户名")
    @TableField("userName")
    private String userName;

    @ApiModelProperty(value = "去向市场id")
    @TableField("toMarketId")
    private String toMarketId;

    @ApiModelProperty(value = "去向市场名")
    @TableField("toMarketName")
    private String toMarketName;

    @ApiModelProperty(value = "去向市场档口名")
    @TableField("toMarketStallName")
    private String toMarketStallName;

    @ApiModelProperty(value = "屠宰档口id")
    @TableField("stallsId")
    private Integer stallsId;

    @ApiModelProperty(value = "屠宰档口名")
    @TableField("stallsName")
    private String stallsName;

    @ApiModelProperty(value = "屠宰市场ID")
    @TableField("slaughterHouseId")
    private String slaughterHouseId;

    @ApiModelProperty(value = "屠宰市场名")
    @TableField("slaughterHouseName")
    private String slaughterHouseName;

    @ApiModelProperty(value = "状态（0已删除委托，1等待中委托，2已接单委托，3已拒单拒单）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "接单时间")
    @TableField(value = "acceptDate")
    private Date acceptDate;

    @ApiModelProperty(value = "数量")
    @TableField("poultryCount")
    private Integer poultryCount;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "isDelete", fill = FieldFill.INSERT)
    @TableLogic
    private Boolean isDelete;

    @ApiModelProperty(value = "禽类id")
    @TableField("poultryId")
    private String poultryId;

    @ApiModelProperty(value = "禽类品种名")
    @TableField("poultryCategoryName")
    private String poultryCategoryName;

}
